package org.handsomezhi.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.handsomezhi.shortlink.project.dao.entity.ShortLinkDO;
import org.handsomezhi.shortlink.project.dto.req.RecycleBinRecoverReqDTO;
import org.handsomezhi.shortlink.project.dto.req.RecycleBinRemoveReqDTO;
import org.handsomezhi.shortlink.project.dto.req.RecycleBinSaveReqDTO;
import org.handsomezhi.shortlink.project.dto.req.ShortLinkRecycleBinPageReqDTO;
import org.handsomezhi.shortlink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * 回收站管理接口层
 */
public interface RecycleBinService extends IService<ShortLinkDO> {

    /**
     * 回收站
     * @param requestParam
     */
    void saveRecycleBin(RecycleBinSaveReqDTO requestParam);


    /**
     * 分页查询回收站短链接
     * @param requestParam 分页查询短链接请求参数
     * @return  短链接分页返回结果
     */
    IPage<ShortLinkPageRespDTO> pageShortLink(ShortLinkRecycleBinPageReqDTO requestParam);


    /**
     * 恢复回收站短链接
     * @param requestParam  请求参数
     */
    void recoverRecycleBin(RecycleBinRecoverReqDTO requestParam);

    void removeRecycleBin(RecycleBinRemoveReqDTO requestParam);
}
